function gridpopupjeniskelamin(varurl,  idsatker, idjeniskelamin) {
    $("#stattable").show(); 
    if (typeof myTable == 'undefined') {
        myTable = $('#stattable').dataTable({
            "bPaginate": true,
            "sPaginationType": "bootstrap",
            "bJQueryUI": false,
            "bProcessing": true,
            "bServerSide": true,
            "bInfo": true, 
            "fnServerParams": function(aoData) {
                aoData.push(
                {name: "instansi", value: idsatker},
                {name: "kelamin", value: idjeniskelamin}
                );
            },
            "bFilter": false,
            "sAjaxSource": varurl,
            "fnServerData": function(sSource, aoData, fnCallback) {
                $.ajax({
                    "dataType": 'json',
                    "type": "POST",
                    "url": sSource,
                    "data": aoData,
                    "success": fnCallback
                });
            },
            "fnRowCallback": function(nRow, aData, iDisplayIndex) {
                return nRow;
            },
            "aoColumns": [
                {"mDataProp": "nama_lengkap", "bSortable": true},
                {"mDataProp": "peg_nip_baru", "bSortable": true},
                {"mDataProp": "jabatan_nama", "bSortable": true},
                {"mDataProp": "golongan_nama", "bSortable": true},
                {"mDataProp": "eselon_nm", "bSortable": true},
                {"mDataProp": "satuan_kerja_nama"}


            ]
        });
        setTimeout(function()
        {
            myTable.fnAdjustColumnSizing();
        }, 10);
        $('.dataTable').wrap('<div class="dataTables_scroll" />');
    }
    else {
        myTable.fnClearTable(0);
        myTable.fnDraw();
    }


}
 
